home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3836 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help about the sin() with linux
  5. Date: Wed, 31 Jan 1996 15:33:47 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <310F6FBB.2EF2@cmt.lpr.mail.carel.fi>
  8. References: <4e2eur$50@avalon.imaginet.fr> <4ehtg6$8j4@hdxx05.telecom.ptt.nl> <4elm7v$c9p@airdmhor.gen.nz>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. Simon Hosie wrote:
  16. > Andre Broers:
  17. > > You have to link the math library with your program. I hope that will
  18. > > work.
  19. >   Where is it??  Where is it??  Tell me, damn you.. I must know!!
  20.  
  21. The libraries are usually in /usr/lib. Usually in *nix the switch -lm in cc command 
  22. line is enough to link the math lib, if the environment variable LIB is pointing to 
  23. the right directory. You can check where the library actually is by doing find ./ 
  24. -name libm.a -print. libm.a is usually the name of the math library; in some 
  25. systems it may have another name, though.
  26.  
  27. Later,
  28. AriL
  29. -- 
  30. All my opinions are mine and mine alone.
  31.